import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertNull;

public class test {
    private JedisAPI jedisAPI;
@Before
    public void startUp() throws Exception {
        jedisAPI = new JedisAPI();
    }
@After
    public void tearDown() throws Exception {
        if (jedisAPI != null) {
            jedisAPI.destroy();
        }
    }
@Test
    public void test() {
        assertNull(jedisAPI.get("haha"));
    }
}
